import {BrowserRouter, NavLink} from "react-router-dom"
import RouterView from './router/index';
import routes from './router/routes';

export default (props) => {
  return (
    <div className='app-route'>
      <BrowserRouter>
        {/* 页面导航 */}
        <ul>
          <li> <NavLink to="/" exact>Table</NavLink> </li>
          <li> <NavLink to="/home" exact>home</NavLink> </li>       
        </ul>
        <RouterView routes={routes}  />
      </BrowserRouter>
    </div>
  );
};
